package com.wyz.serviceImpl;

import com.wyz.entity.Chapter;
import com.wyz.mapper.ChapterMapper;
import com.wyz.service.ChapterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ChapterServiceImpl implements ChapterService {
    @Autowired
    ChapterMapper chapterMapper;
    @Override
    public Chapter findById(int id) {
        return chapterMapper.findById(id);
    }

    @Override
    public List<Chapter> findAll() {
        return chapterMapper.findAll();
    }
}
